---
id: "char-literal"
keywords: ["char"]
name: "' '"
summary: "This is the `char` literal syntax."
category: "languageconstructs"
---

A `char` literal is composed of two **single** quotes. Double quotes are reserved for the `string` type. Note that `char` is essentially an integer in JS since version 10.0.

### Example

<CodeTab labels={["ReScript", "JS Output"]}>

```res
let one = '1';
let upperCaseA = 'A';
let lowerCaseA = 'a';
let unicode ='😀';
let escape = '\u1111'
```

```js
var one = /* '1' */ 49;

var upperCaseA = /* 'A' */ 65;

var lowerCaseA = /* 'a' */ 97;
var unicode = 128512;
var escape = 4369;
```

</CodeTab>

### References

- [String & Char](../docs/manual/primitive-types.mdx)
- [Strings](../docs/manual/primitive-types.mdx#string)
